package com.example.Arithmetic.Arithmetic;

/**
 * 日期：2023/12/29
 * 时间：13:22
 * 描述：图的边类
 */
public class Edge {
    //    权重
    int weight;
    //    终点
    Vertex linked;

    public Edge(Vertex linked, int weight) {
        this.weight = weight;
        this.linked = linked;
    }

    public Edge(Vertex linked) {
        this(linked, 1);
    }
}
